﻿using ModernChannel.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernChannel.Model.Interface
{
    public interface IProvinceProvider
    {
        List<Province> SearchProvinces(out int totalRecord, string provinceIdentifier, string provinceName,
            decimal? lng, decimal? lat, string regionIdentifier,
            int pagesize = 0, int pageindex = 0);

        List<Province> SearchProvinces(out int totalRecord, string provinceIdentifier = null, int pageSize = 0, int pageIndex = 0);

        Province RetrieveProvince(string provinceIdentifier);

        bool Add(Province record);

        bool Update(Province record);

        bool Delete(int provinceId);
    }
}
